<?php
class Site_Form_SiteEdit extends Site_Form_SiteAdd {

	public function init() {
		parent::init();

		$exclude = sprintf('locale = "%s" AND id != %d',
							preg_replace('/[^\w]/', '', @$_POST['exttab']['locale']),
							current($this->getPrimaryKey()));

		$this->getSubForm('seotab')
			 ->getElement('alias')
			 ->removeValidator('db_no_exsists')
			 ->addValidator(new Zend_Validate_Db_NoRecordExists('site','alias', $exclude));
	}
}